A closed form of the electrostatic potential of a homogeneously charged cubeis derived by integration. The exact result is compared with multipoleexpansions for the exterior and interior of the cube. The electrostaticpotential of a homogeneously charged square in two-dimensional electrostaticsis also determined.
展开▼